/**
 * crawler-base
 *
 * outlook@China software studio
 * Copyright (c) 2008-2011. All Rights Reserved.
 * http://www.outlook.com
 */

package org.outlook.crawler.client.api;

import org.outlook.crawler.client.pojo.Response;
import org.outlook.crawler.client.pojo.ResponseType;

/**
 * function:
 * @author watson  email: watson.wu@hotmail.com
 * @date 2011-4-24
 */
public interface Crawler {
	
	public Response crawlByUrl(String url, ResponseType responseType);
	
	public Response crawlByUrl(String from, String to, ResponseType responseType);
	
	public Response crawlByKeyword(String keyword, Long sourceId, ResponseType responseType);
	
	public Response crawlByUrl(String url, Long sourceId, ResponseType responseType);
	
	public Response crawlByUrl(String from, String to, Long sourceId, ResponseType responseType);
	
	public void crawlWebsite(Long sourceId);

}
